Microsoft Teams – Converting a Team Membership from Static to Dynamic (and Vice Versa)

Dynamic membership for teams has been around for a while now, and it is a good solution to keep the list of the members of a team updated automatically, based on the query you defined for the group membership in Azure AD.
So, is there a way to convert an existing team membership to dynamic (or I need to move from dynamic to assigned)?